package com.yitao.cms.task;


import com.yitao.cms.service.activity.CmsProductGroupActivityService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class ActivityTask {
    @Autowired
    private CmsProductGroupActivityService cmsProductGroupActivityService;

    @Scheduled(cron = "0 0 12 * * ?")
    public void allotInventoryTask() {
        cmsProductGroupActivityService.taskUpdate();
    }

}
